package com.ruoyi.system.domain.module.estate;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import java.util.List;

/**
 * 小区内的房屋列信息对象 estate_room
 *
 * @author ruoyi
 * @date 2022-06-28
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("estate_room")
public class EstateRoom implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 小区id
     */
    private Integer estateId;

	/**
	 *  小区名称
	 */
    @Excel(name = "小区名称")
	private String estateName;

    /**
     * 房间号
     */
    @Excel(name = "房间号")
    private String roomNo;

    /**
     * 楼号
     */
    private String buildNo;

	/**
	 *  建筑id
	 */
	private Integer buildId;

	/**
	 * 单元id
	 */
	private Integer unitId;

	/**
	 *  楼层id
	 */
	private Integer floorId;

	/**
     * 单元号
     */
    private String unitNo;

    /**
     * 房间号
     */
    private String roomNum;

	/**
	 *  房屋类型  0 - 高层 1 - 低层 2- 商业 3 - 别墅 4 - 其他
	 */
	private Integer roomType;
    /**
     * 房屋面积
     */
    private String roomArea;

    /**
     * 房主姓名
     */
    @Excel(name = "房主姓名")
    private String realName;

    /**
     * 房主手机号
     */
    @Excel(name = "房主手机号")
    private String phoneNum;

    /**
     * 绑定微信用户id
     */
    private Integer bangWxUserId;

    /**
     * 状态
     */
    private Integer state;

	/**
	 *  房屋二维码
	 */
	private String qrCode;

	/**
	 *  账户余额
	 */
	private Double account;

    @TableField(exist = false)
    private String year;


	@TableField(exist = false)
	private Integer isHasDiffWyf;

	@TableField(exist = false)
	private List<Integer> month;

	@Excel(name = "缴费至")
	@TableField(exist = false)
	private String jiaofei;

	@Excel(name = "欠费金额")
	@TableField(exist = false)
	private String qianfei;

	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date vacantBeginDate;

	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date vacantEndDate;

	@TableField(exist = false)
	private Double chongzhi;

	@TableField(exist = false)
	private Long rechargeWay;

	@TableField(exist = false)
	private Double count;

	@TableField(exist = false)
	private String remake;

	@TableField(exist = false)
	private String paymentTo;


	/**
	 * 未缴费的起始月的年份
	 */
	@TableField(exist = false)
	private String unPayYearNum;

	/**
	 * 未缴费的起始月的月份
	 */
	@TableField(exist = false)
	private String unPayMonthNum;
	/**
	 * 欠费月份数
	 */
	@TableField(exist = false)
	private Integer unPayMonthCount;

	/**
	 *  当前房屋欠费金额
	 */
	@TableField(exist = false)
	private BigDecimal unPayTotalMoney;

	@TableField(exist = false)
	private List<Integer> roomIds;
}
